<?php

namespace app\common\model\mycurrency;

use app\common\model\billiard\StoreGoods;
use think\Exception;
use think\Model;
use traits\model\SoftDelete;

class DeviceLattice extends Model
{

    //use SoftDelete;

    // 表名
    protected $name = 'mycurrency_device_lattice';

    const STATUS_ZHENGCHENG = 1;//状态 = 正常
    const STATUS_JINYONG = 2;//状态 = 禁用

    const USE_STATUS_YOUGAN = 1;//使用状态:1=有杆
    const USE_STATUS_WUGAN = 2;//使用状态:2=无杆

    const IS_FAULT_WU = 1;//是否有故障 = 无;
    const IS_FAULT_YOU = 2;//是否有故障 = 有;



    public function storeGoods(){
        return $this->hasOne(StoreGoods::class, 'id', 'store_goods_id');
    }


}
